import redis

r = redis.Redis(host="127.0.0.1", port=6666,decode_responses=True)
# r.set('keyd', 123123, xx=True)
print(r.get('kuiu'))